﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace pbvs.Models.ViewModels
{
    public class ValuationReport
    {
        public DateTime CreatedDate { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Company { get; set; }
        public string Address { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
        public string ParticipantFirstName { get; set; }
        public string ParticipantLastName { get; set; }
        public string SurvivorFirstName { get; set; }
        public string SurvivorLastName { get; set; }
        public string Gender { get; set; }
        public DateTime ValuationDate { get; set; }
        public DateTime Dob { get; set; }
        public DateTime RetirementDate { get; set; }
        public decimal MonthlyBenefit { get; set; }
        public string AnnuityType { get; set; }
        public DateTime SurvivorDob { get; set; }
        public decimal SurvivorMonthlyBenefit { get; set; }
        public decimal PresentValueAtProjectedDate { get; set; }
        public decimal MaritalPortionOfPresentValue { get; set; }

        public string FullAddress
        {
            get
            {
                return string.Format("{0}\r\n{1} {2}, {3} {4}", Address,
                                     string.IsNullOrEmpty(Address2) ? "" : string.Format("{0}\r\n", Address2), City, State,
                                     Zip, Environment.NewLine);
            }
        }

        public string NameAndAddress
        {
            get
            {
                return string.Format("{0} {1}\r\n{2}", FirstName, LastName, FullAddress);
            }
        }
    }
}